package com.bdsoft.actions.dicManage.Dao;

import com.bdsoft.actions.dicManage.entity.DictDetail;
import com.bdsoft.actions.dicManage.entity.SysDictType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface DictionaryMapper {
    // 字典类型
    List<SysDictType> selectDictType(@Param("typeCode") String typeCode, @Param("typeName") String typeName);
    int insertDictType(SysDictType dictType);
    int updateDictType(SysDictType dictType);
    int deleteDictType(@Param("id") String id);
    SysDictType getDictTypeById(@Param("id") String id);

    // 字典明细
    List<DictDetail> selectDictDetail(@Param("dictCode") String dictCode);
    int insertDictDetail(DictDetail detail);
    int updateDictDetail(DictDetail detail);
    int deleteDictDetail(@Param("id") String id);
    DictDetail getDictDetailById(@Param("id") String id);
}
